/**
 * 
 */
package com.hoopchina.settings;

import com.hoopchina.news.R;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceScreen;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.Toast;

/**
 * 设置Activity
 * 
 * @author Guo Baiyu
 *
 */
public class SettingsActivity extends PreferenceActivity {
	public static final String	Id	= "SettingsActivity";
	public static boolean	   mDestroyActivity;
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // Load the preferences from an XML resource
        addPreferencesFromResource(R.xml.preferences);
       
    }
    
    public static void destroyActivity()
    {
    	mDestroyActivity = true;
    }
    
	public void onResume() {
		super.onResume();
		if(mDestroyActivity)
		{
			mDestroyActivity = false;			
			finish();
		}
	}
}
